package com.myedu.tankgame02;

import javax.swing.*;

/**
 * 绘制坦克模型
 */
@SuppressWarnings({"all"})
public class TankGames02 extends JFrame {
    MyPlane mp = null;

    public static void main(String[] args) {
        TankGames02 tankGames = new TankGames02();
    }

    public TankGames02() {
        mp = new MyPlane();
        Thread thread = new Thread(mp);
        thread.start();
        this.add(mp);
        this.addKeyListener(mp);
        this.setSize(1000, 750);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}

